package network;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ServerApp {

	public static void main(String[] args) throws Exception {
		ExecutorService pool = Executors.newFixedThreadPool(5);
		ServerSocket ss = new ServerSocket(8000);

	
		while (true) {
			final Socket con = ss.accept();
			
			Task w = new Task(con);
			pool.execute(w);

		}

	}

}
